import * as auth from '../constants/AuthTypes'

const initialState = {
    login_status:false
}

const Auth = (state=initialState, action) => {
    // console.log(action)
    switch (action.type) {
        case auth.LoginStatus.LOGIN_SUCC:
            console.log(211212)
            console.log(action.status)
            return Object.assign({},state,{
                login_status:action.status
            })
        case auth.LoginStatus.LOGIN_FAIL:
            return Object.assign({},state,{
                login_status:action.status
            })
        default:
            return state
    }
}

export default Auth